<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<div style="width: 400px;height: 50px;border: 1px  solid pink;overflow-y:auto">
			<p>123</p>
			<p>123</p>
			<p>123</p>
			<p>123</p>
			<p>123</p>
			<p>123</p>
			<p>123</p>
		</div>
		<script type="text/javascript">
//			  var longrg = /^(\-|\+)?(((\d|[1-9]\d|1[0-7]\d|0{1,3})\.\d{0,6})|(\d|[1-9]\d|1[0-7]\d|0{1,3})|180\.0{0,6}|180)$/;
//			  var latreg = /^(\-|\+)?([0-8]?\d{1}\.\d{0,6}|90\.0{0,6}|[0-8]?\d{1}|90)$/;
//			  var reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;
//			  var num1 =1344;
//			  var num2 =122;
//			  var num3 ="1429304202qq.com";
//			  console.log('nihao',longrg.test(num1));
//			  console.log('nihao',latreg.test(num2));
//			  console.log('nihao',reg.test(num3));
//			  
			  var arr= [1,2,3,4];
			  console.log(arr.indexOf(3));
			  arr.splice(arr.indexOf(3),1);
			  console.log(arr);
			  
			  
		</script>
	</body>
</html>
